package butang.jvm.MethodDemo;

/**
 * ClassName: test
 * Package: butang.jvm.frame
 * Description:
 *
 * @Author BuTang
 * @Create 2024/1/23 15:28
 * @Version 1.0
 */
public class MethodDemo {
    public static void main(String[] args) {
        study();
    }
    public static void study(){
        eat();
        sleep();
    }
    public static void eat(){
        System.out.println("吃饭");
    }
    public static void sleep(){
        System.out.println("睡觉");
        throw new RuntimeException("测试");
    }
}